/******************************************************************************
*
*    File Name:  DDRStub.sv
*      Version:  1.0
*         Date:  June 13th, 2013
*        Model:  
*    Simulator:  Questa Sim- Mentor Graphics (Version 64 10.2a)
*
* Dependencies:  None
*
*       Author:  Nachiket Khasbag & Nikhil Patil 
*        Email:  nachiket@pdx.edu, pnikhil@gmail.com
*        Phone:  404-660-0757, 971-300-1728
*   University:  Portland State University
*  Description: Memory Stub and Parameters definitions.
*
*
******************************************************************************/


`timescale 1ns / 1ps


package DDRStub; 

  parameter BURST_LENGTH  = 2;
  parameter NUM_BITS      = 8;
  parameter NUM_ROWS      = 128; 
  parameter NUM_COL       = 128;
  parameter NUM_BANKS     = 2;
  parameter NUM_CHIPS     = 8;
  parameter DATA_WIDTH    = 64;  
  
  localparam BUFFER_WIDTH = BURST_LENGTH*64;
  localparam ROW_LINES    = $clog2(NUM_ROWS);
  localparam COL_LINES    = $clog2(NUM_COL);   
  localparam TRC          = 10000;
  localparam TRP          = 30;
  
  typedef struct{
    bit [NUM_BITS-1:0] mem[NUM_ROWS-1:0][NUM_COL-1:0]; 
  }bank;
  
  typedef struct{
      bank bank_number[NUM_BANKS-1:0];
    }chip;
  
endpackage
